package com.company.model.request;

import java.io.Serializable;
import javax.validation.constraints.NotNull;

/**
 * 评论请求实体
 * Created by tu on 2017/7/6.
 */
public class CommentForm implements Serializable {

  private static final long serialVersionUID = 2362345363671086972L;
  /**
   * 公司id
   */
  private Long companyId;
  /**
   * 父评论id
   */
  private Long parentId;

  /**
   * 评论类型 {@link com.company.model.CommentType}
   */
  private Integer type;

  /**
   * 评论内容
   */
//  @NotNull(message = "内容不能为空")
  private String content;

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public Long getParentId() {
    return parentId;
  }

  public void setParentId(Long parentId) {
    this.parentId = parentId;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  @Override
  public String toString() {
    return "CommentForm{" +
        "companyId=" + companyId +
        ", parentId=" + parentId +
        ", type=" + type +
        ", content='" + content + '\'' +
        '}';
  }
}
